68 const GSkyDir&
at(
const int& index)
const;
73 void remove(
const int& index);
158 return ((
int)
m_dirs.size());
GSkyDir & at(const int &index)
Return reference to sky direction.
void free_members(void)
Delete class members.
GSkyDirs & operator=(const GSkyDirs &dirs)
Assignment operator.
std::string classname(void) const
Return class name.
GSkyDir & append(const GSkyDir &dir)
Append sky direction to container.
int size(void) const
Return number of sky directions in container.
Sky direction class interface definition.
bool is_empty(void) const
Signals if there are no sky directions in container.
GSkyDirs(void)
Void constructor.
GSkyDirs * clone(void) const
Clone sky directions container.
std::vector< GSkyDir > m_dirs
List of sky directions.
void init_members(void)
Initialise class members.
void clear(void)
Clear sky directions container.
void reserve(const int &num)
Reserves space for sky directions in container.
void extend(const GSkyDirs &dirs)
Append sky directions container.
Definition of interface for container classes.
void copy_members(const GSkyDirs &dirs)
Copy class members.
virtual ~GSkyDirs(void)
Destructor.
GSkyDir & insert(const int &index, const GSkyDir &dir)
Insert sky direction into container.
GSkyDir & operator[](const int &index)
Return reference to sky direction.
Interface class for container classes.
std::string print(const GChatter &chatter=NORMAL) const
Print sky directions container information.
Sky directions container class.