Skip to main content

MNEMghTagGroup

Namespace: MNELIB  ·  Library: MNE Library

#include <mne/mne_mgh_tag_group.h>

class MNELIB::MNEMghTagGroup

Collection of MNEMghTag entries from a FreeSurfer MGH/MGZ file footer.

Owns its tags via unique_ptr.


Public Methods​

MNEMghTagGroup()​

Constructs an empty MNEMghTagGroup.


MNEMghTagGroup(other)​


operator=(other)​


MNEMghTagGroup()​


operator=()​


~MNEMghTagGroup()​

Destructor.


ntags()​

Returns the number of tags in the group.

Returns:

  • int — Number of owned tag entries.

Example​

No example of its own: Container of MNEMghTag records filled by the surface reader inside MNESourceSpace; never constructed by callers.

It is exercised by:

src/examples/ex_mne_api/main.cpp
// A FreeSurfer surface with its curvature and the volume geometry from the file footer
const auto white = MNESourceSpace::load_surface(data + "/subjects/sample/surf/lh.white", data + "/subjects/sample/surf/lh.curv");
const MNEVolGeom& geometry = *white->vol_geom; // sizes and centre converted to metres

From ex_mne_api.

Authors of this file​