Loading...
Searching...
No Matches
Public Member Functions | List of all members
bitpit::adaption::InfoCollection Class Reference

The InfoCollection class is a container that holds one or more adaption info items. More...

Public Member Functions

 InfoCollection ()
 
Infoat (std::size_t id)
 
const Infoat (std::size_t id) const
 
std::size_t create ()
 
std::size_t create (Type type, Entity entity, int rank=-1)
 
const std::vector< Info > & data () const noexcept
 
std::vector< Info > & data () noexcept
 
std::vector< Infodump ()
 
Infooperator[] (std::size_t id)
 
const Infooperator[] (std::size_t id) const
 

Detailed Description

The InfoCollection class is a container that holds one or more adaption info items.

Definition at line 81 of file adaption.hpp.

Constructor & Destructor Documentation

◆ InfoCollection()

bitpit::adaption::InfoCollection::InfoCollection ( )

Default constructor.

Definition at line 78 of file adaption.cpp.

Member Function Documentation

◆ at() [1/2]

Info & bitpit::adaption::InfoCollection::at ( std::size_t n)

Returns a reference to the adaption info at the specified position in the collection.

Parameters
nis the position of an adaption info in the collection.
Returns
Returns a reference to requested adaption info.

Definition at line 162 of file adaption.cpp.

◆ at() [2/2]

const Info & bitpit::adaption::InfoCollection::at ( std::size_t n) const

Returns a constant reference to the adaption info at the specified position in the collection.

Parameters
nis the position of an adaption info in the collection.
Returns
Returns a constant reference to requested adaption info.

Definition at line 178 of file adaption.cpp.

◆ create() [1/2]

std::size_t bitpit::adaption::InfoCollection::create ( )

Creates an empty adaption info.

Returns
An empty adaption info.

Definition at line 115 of file adaption.cpp.

◆ create() [2/2]

std::size_t bitpit::adaption::InfoCollection::create ( Type type,
Entity entity,
int rank = -1 )

Creates an adaption info with the requested data.

If an adaption info with the requested data already exists, the existing value will be returned, otherwise a new adaption info will be created.

Parameters
typeis the type of adaption info
entityis the entity associated to the adaption info
rankis the rank associated to the adaption info
Returns
The requested adaption info. If an adaption info with the requested data already exists, the existing value will be returned, otherwise a new adaption info will be created.

Definition at line 135 of file adaption.cpp.

◆ data() [1/2]

const std::vector< Info > & bitpit::adaption::InfoCollection::data ( ) const
noexcept

Returns a constant reference to the vector used internally by the collection to store its owned adaption info.

Returns
A constant reference to the vector used internally by the collection to store its owned adaption info.

Definition at line 93 of file adaption.cpp.

◆ data() [2/2]

std::vector< Info > & bitpit::adaption::InfoCollection::data ( )
noexcept

Returns a reference to the vector used internally by the collection to store its owned adaption info.

Returns
A reference to the vector used internally by the collection to store its owned adaption info.

Definition at line 105 of file adaption.cpp.

◆ dump()

std::vector< Info > bitpit::adaption::InfoCollection::dump ( )

Dumps the collection of adaption info.

Once the collection is dumped, the internal list of adaption info and the internal cache are deleted.

Returns
The collection of adaption info.

Definition at line 217 of file adaption.cpp.

◆ operator[]() [1/2]

Info & bitpit::adaption::InfoCollection::operator[] ( std::size_t id)

Get a reference to the specified adaption info

Parameters
idis the index of the requested adaption info
Returns
Returns a reference to requested adaption info.

Definition at line 193 of file adaption.cpp.

◆ operator[]() [2/2]

const Info & bitpit::adaption::InfoCollection::operator[] ( std::size_t id) const

Get a constant reference to the specified adaption info

Parameters
idis the index of the requested adaption info
Returns
Returns a constant reference to requested adaption info

Definition at line 204 of file adaption.cpp.


The documentation for this class was generated from the following files:
--- layout: doxygen_footer ---