NSVD Reader  0.0.1
nodamushi Namespace Reference

Namespaces

 details
 
 svd
 
 visitor
 

Classes

struct  box
 
struct  boxitr
 iterator for boxvec More...
 
class  boxvec
 vector<pointer<T>>. More...
 
struct  ref
 raw pointer container.(not managed) More...
 
struct  refhash
 hash of ref<T> More...
 

Typedefs

using const_string = const char *
 
using string_ref = const std::string &
 
using substring = std::string
 
using str_mapkey = std::string
 
template<typename V >
using str_map = std::unordered_map< str_mapkey, V >
 

Functions

template<typename T >
const T & unboxing (const T &t)
 
template<typename T , typename D >
const T & unboxing (const box< T, D > &t)
 
constexpr bool is_empty (const char *v)
 
bool is_empty (const std::string &v)
 
template<char... chars>
constexpr size_t get_const_string_length ()
 
template<char... chars>
constexpr char at_const_string (size_t index)
 
template<size_t N>
constexpr char at (const char(&array)[N], size_t index)
 
template<size_t MAX_SIZE, size_t N>
constexpr char at0 (const char(&array)[N])
 
template<char... chars>
constexpr const_string get_const_string ()
 
template<char... chars>
std::ostream & print_const_string (std::ostream &o)
 
template<typename T >
ref< T > ref_of (const T &t)
 
template<typename ITR , typename ITR_END >
void emplace_back_string (std::vector< std::string > &v, ITR itr, ITR_END end)
 
template<typename INT >
INT to_int (const std::string &v, int base=10)
 
template<typename INT >
INT to_int (const std::string &v, size_t begin, size_t end, int base=10)
 
template<typename INT >
INT to_int (const char *text, size_t begin, size_t end, int base=10)
 
template<typename INT >
INT to_int (const char *text, int base=10)
 

Variables

constexpr auto find_npos = std::string::npos
 

Detailed Description

These codes are licensed under CC0. http://creativecommons.org/publicdomain/zero/1.0/

Typedef Documentation

◆ const_string

using nodamushi::const_string = typedef const char*

Definition at line 43 of file string_type.hpp.

◆ str_map

template<typename V >
using nodamushi::str_map = typedef std::unordered_map<str_mapkey, V>

Definition at line 52 of file string_type.hpp.

◆ str_mapkey

using nodamushi::str_mapkey = typedef std::string

Definition at line 49 of file string_type.hpp.

◆ string_ref

using nodamushi::string_ref = typedef const std::string&

Definition at line 44 of file string_type.hpp.

◆ substring

using nodamushi::substring = typedef std::string

Definition at line 45 of file string_type.hpp.

Function Documentation

◆ at()

template<size_t N>
constexpr char nodamushi::at ( const char(&)  array[N],
size_t  index 
)

Definition at line 63 of file const_string.hpp.

◆ at0()

template<size_t MAX_SIZE, size_t N>
constexpr char nodamushi::at0 ( const char(&)  array[N])

Definition at line 68 of file const_string.hpp.

◆ at_const_string()

template<char... chars>
constexpr char nodamushi::at_const_string ( size_t  index)

Definition at line 57 of file const_string.hpp.

◆ emplace_back_string()

template<typename ITR , typename ITR_END >
void nodamushi::emplace_back_string ( std::vector< std::string > &  v,
ITR  itr,
ITR_END  end 
)

Definition at line 56 of file string_type.hpp.

◆ get_const_string()

template<char... chars>
constexpr const_string nodamushi::get_const_string ( )

Definition at line 76 of file const_string.hpp.

◆ get_const_string_length()

template<char... chars>
constexpr size_t nodamushi::get_const_string_length ( )

Definition at line 51 of file const_string.hpp.

◆ is_empty() [1/2]

constexpr bool nodamushi::is_empty ( const char *  v)
inline

Definition at line 42 of file const_string.hpp.

◆ is_empty() [2/2]

bool nodamushi::is_empty ( const std::string &  v)
inline

Definition at line 43 of file const_string.hpp.

◆ print_const_string()

template<char... chars>
std::ostream& nodamushi::print_const_string ( std::ostream &  o)

Definition at line 90 of file const_string.hpp.

◆ ref_of()

template<typename T >
ref<T> nodamushi::ref_of ( const T &  t)

Definition at line 57 of file refhash.hpp.

◆ to_int() [1/4]

template<typename INT >
INT nodamushi::to_int ( const std::string &  v,
int  base = 10 
)

Definition at line 80 of file to_int.hpp.

◆ to_int() [2/4]

template<typename INT >
INT nodamushi::to_int ( const std::string &  v,
size_t  begin,
size_t  end,
int  base = 10 
)

Definition at line 87 of file to_int.hpp.

◆ to_int() [3/4]

template<typename INT >
INT nodamushi::to_int ( const char *  text,
size_t  begin,
size_t  end,
int  base = 10 
)

Definition at line 93 of file to_int.hpp.

◆ to_int() [4/4]

template<typename INT >
INT nodamushi::to_int ( const char *  text,
int  base = 10 
)

Definition at line 99 of file to_int.hpp.

◆ unboxing() [1/2]

template<typename T >
const T& nodamushi::unboxing ( const T &  t)

Definition at line 82 of file box.hpp.

◆ unboxing() [2/2]

template<typename T , typename D >
const T& nodamushi::unboxing ( const box< T, D > &  t)

Definition at line 84 of file box.hpp.

Variable Documentation

◆ find_npos

constexpr auto nodamushi::find_npos = std::string::npos

Definition at line 47 of file string_type.hpp.