Public Types | Public Member Functions

element_t< ConfigType, point_tag > Class Template Reference

Specialization of the main n-cell class for vertices. Does not need to do any recursive inheritance here. More...

#include <element.hpp>

Inheritance diagram for element_t< ConfigType, point_tag >:
integral_id

Public Types

typedef ConfigType config_type
typedef point_tag tag
typedef
result_of::element_id_handler
< ConfigType, point_tag >
::type::id_type 
id_type

Public Member Functions

 element_t ()
 element_t (PointType const &p, long id=-1)
 element_t (const element_t &e2)
 ~element_t ()
element_toperator= (const element_t &other)
PointTypepoint ()
 Provide access to the geometrical point object defining the location of the vertex in space.
PointType const & point () const
 Provide access to the geometrical point object defining the location of the vertex in space. const-version.
CoordType & operator[] (std::size_t i)
 Convenience access to the coordinates of the point.
CoordType const & operator[] (std::size_t i) const
 Convenience access to the coordinates of the point. const-version.
std::size_t size () const
 Convenience forward for obtaining the geometrical dimension of the underlying Euclidian space.
bool operator< (const element_t e2) const
 Convenience less-than comparison function, forwarding to the point.
bool operator> (const element_t e2) const
 Convenience greater-than comparison function, forwarding to the point.

Detailed Description

template<typename ConfigType>
class viennagrid::element_t< ConfigType, point_tag >

Specialization of the main n-cell class for vertices. Does not need to do any recursive inheritance here.


Member Typedef Documentation

typedef ConfigType config_type
typedef result_of::element_id_handler<ConfigType, point_tag>::type::id_type id_type

Reimplemented from integral_id.

typedef point_tag tag

Constructor & Destructor Documentation

element_t (  )  [inline]
element_t ( PointType const &  p,
long  id = -1 
) [inline]
element_t ( const element_t< ConfigType, point_tag > &  e2  )  [inline]
~element_t (  )  [inline]

Member Function Documentation

bool operator< ( const element_t< ConfigType, point_tag e2  )  const [inline]

Convenience less-than comparison function, forwarding to the point.

element_t& operator= ( const element_t< ConfigType, point_tag > &  other  )  [inline]
bool operator> ( const element_t< ConfigType, point_tag e2  )  const [inline]

Convenience greater-than comparison function, forwarding to the point.

CoordType& operator[] ( std::size_t  i  )  [inline]

Convenience access to the coordinates of the point.

CoordType const& operator[] ( std::size_t  i  )  const [inline]

Convenience access to the coordinates of the point. const-version.

PointType const& point (  )  const [inline]

Provide access to the geometrical point object defining the location of the vertex in space. const-version.

PointType& point (  )  [inline]

Provide access to the geometrical point object defining the location of the vertex in space.

std::size_t size (  )  const [inline]

Convenience forward for obtaining the geometrical dimension of the underlying Euclidian space.


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