45 #define G_AT "GSkyDirs::at(int&)"
46 #define G_INSERT "GSkyDirs::insert(int&, GSkyDir&)"
47 #define G_REMOVE "GSkyDirs::remove(int&)"
214 if (index < 0 || index >=
size()) {
257 #if defined(G_RANGE_CHECK)
265 if (index < 0 || index >=
size()) {
293 #if defined(G_RANGE_CHECK)
294 if (index < 0 || index >=
size()) {
322 int num = dirs.
size();
328 for (
int i = 0; i < num; ++i) {
329 m_dirs.push_back(dirs[i]);
354 result.append(
"=== GSkyDirs ===");
362 for (
int i = 0; i <
size(); ++i) {
GSkyDir & at(const int &index)
Return reference to sky direction.
void free_members(void)
Delete class members.
GSkyDirs & operator=(const GSkyDirs &dirs)
Assignment operator.
GSkyDir & append(const GSkyDir &dir)
Append sky direction to container.
int size(void) const
Return number of sky directions in container.
Sky directions container class 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.
void remove(const int &index)
Remove sky direction from 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.
Exception handler interface definition.
void extend(const GSkyDirs &dirs)
Append sky directions container.
void copy_members(const GSkyDirs &dirs)
Copy class members.
virtual ~GSkyDirs(void)
Destructor.
std::string parformat(const std::string &s, const int &indent=0)
Convert string in parameter format.
GSkyDir & insert(const int &index, const GSkyDir &dir)
Insert sky direction into container.
Filename class interface definition.
std::string print(const GChatter &chatter=NORMAL) const
Print sky directions container information.
Sky directions container class.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.