CASM  1.1.0
A Clusters Approach to Statistical Mechanics
CASM::ContainerTraits< std::vector< _value_type, Allocator > > Struct Template Reference

#include <ContainerTraits.hh>

Detailed Description

template<typename _value_type, typename Allocator>
struct CASM::ContainerTraits< std::vector< _value_type, Allocator > >

Definition at line 24 of file ContainerTraits.hh.

Public Types

using Container = std::vector< _value_type, Allocator >
 
using value_type = typename Container::value_type
 
using size_type = typename Container::size_type
 
using Access = CASM_TMP::BracketAccess< Container, value_type, size_type >
 

Static Public Member Functions

static size_type size (const Container &vec)
 
static size_type rows (const Container &vec)
 
static size_type cols (const Container &vec)
 

Member Typedef Documentation

◆ Access

template<typename _value_type , typename Allocator >
using CASM::ContainerTraits< std::vector< _value_type, Allocator > >::Access = CASM_TMP::BracketAccess<Container, value_type, size_type>

Definition at line 28 of file ContainerTraits.hh.

◆ Container

template<typename _value_type , typename Allocator >
using CASM::ContainerTraits< std::vector< _value_type, Allocator > >::Container = std::vector<_value_type, Allocator>

Definition at line 25 of file ContainerTraits.hh.

◆ size_type

template<typename _value_type , typename Allocator >
using CASM::ContainerTraits< std::vector< _value_type, Allocator > >::size_type = typename Container::size_type

Definition at line 27 of file ContainerTraits.hh.

◆ value_type

template<typename _value_type , typename Allocator >
using CASM::ContainerTraits< std::vector< _value_type, Allocator > >::value_type = typename Container::value_type

Definition at line 26 of file ContainerTraits.hh.

Member Function Documentation

◆ cols()

template<typename _value_type , typename Allocator >
static size_type CASM::ContainerTraits< std::vector< _value_type, Allocator > >::cols ( const Container vec)
inlinestatic

Definition at line 34 of file ContainerTraits.hh.

◆ rows()

template<typename _value_type , typename Allocator >
static size_type CASM::ContainerTraits< std::vector< _value_type, Allocator > >::rows ( const Container vec)
inlinestatic

Definition at line 32 of file ContainerTraits.hh.

◆ size()

template<typename _value_type , typename Allocator >
static size_type CASM::ContainerTraits< std::vector< _value_type, Allocator > >::size ( const Container vec)
inlinestatic

Definition at line 30 of file ContainerTraits.hh.


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