51 #include <QSharedPointer>
74 typedef QSharedPointer<SurfaceSet>
SPtr;
92 explicit SurfaceSet(
const QString &subject_id, qint32 hemi,
const QString &surf,
const QString &subjects_dir);
102 explicit SurfaceSet(
const QString &path, qint32 hemi,
const QString &surf);
120 explicit SurfaceSet(
const QString& p_sLHFileName,
const QString& p_sRHFileName);
140 inline QMap<qint32, Surface>& data();
148 inline bool isEmpty()
const;
156 void insert(
const Surface& p_Surface);
168 static bool read(
const QString& p_sLHFileName,
const QString& p_sRHFileName,
SurfaceSet &p_SurfaceSet);
176 inline QString surf()
const;
186 const Surface& operator[] (qint32 idx)
const;
196 Surface& operator[] (qint32 idx);
206 const Surface& operator[] (QString idt)
const;
216 Surface& operator[] (QString idt);
224 inline qint32 size()
const;
233 QMap<qint32, Surface> m_qMapSurfs;
249 return m_qMapSurfs.isEmpty();
256 if(m_qMapSurfs.size() > 0)
257 return m_qMapSurfs.begin().value().surf();
266 return m_qMapSurfs.size();
270 #endif // SURFACESET_H