libmonaa  0.5.2
Public Member Functions | Protected Attributes | List of all members
AnsContainer< Container > Class Template Reference

Container class for the output zones. More...

#include <ans_vec.hh>

Public Member Functions

 AnsContainer (const Container vec)
 Constructor.
 
 AnsContainer ()
 Constructor.
 
std::size_t size () const
 Returns the number of the contained zones. More...
 
void push_back (typename Container::value_type in)
 Append a zone to the container. More...
 
void clear ()
 Remove all the contained zones.
 
void reserve (std::size_t n)
 Reserve the space to contain zones. More...
 

Protected Attributes

Container vec
 The actual container of the zones.
 

Detailed Description

template<class Container>
class AnsContainer< Container >

Container class for the output zones.

Note
This class just defines the interface of the container. The actual definition must be done in the class Container passed by template argument. An example is PrintContainer.
This class does not require to contain the zones but just have the interface to push_back.

Member Function Documentation

◆ push_back()

template<class Container >
void AnsContainer< Container >::push_back ( typename Container::value_type  in)
inline

Append a zone to the container.

Parameters
[in]inA zone to be appended.

◆ reserve()

template<class Container >
void AnsContainer< Container >::reserve ( std::size_t  n)
inline

Reserve the space to contain zones.

Note
If the container does not need to reserve its space, this function does nothing.
Parameters
[in]nThe size of the reserved space of the container.

◆ size()

template<class Container >
std::size_t AnsContainer< Container >::size ( ) const
inline

Returns the number of the contained zones.

Returns
The number of the contained zones.

The documentation for this class was generated from the following file: