mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes
m::wasm::NChar Struct Reference

#include <WasmUtil.hpp>

Inheritance diagram for m::wasm::NChar:
[legend]
Collaboration diagram for m::wasm::NChar:
[legend]

Public Types

using primitive_type = NChar
 

Public Member Functions

 NChar (Ptr< Charx1 > ptr, bool can_be_null, const CharacterSequence *type)
 
 NChar (Ptr< Charx1 > ptr, bool can_be_null, std::size_t length, bool guarantees_terminating_nul)
 
 NChar (NChar &)=default
 
 NChar (NChar &&)=default
 
NChar clone () const
 
Ptr< Charx1 > val ()
 
Ptr< Charx1 > insist_not_null ()
 
Boolx1 is_null ()
 
Boolx1 not_null ()
 
bool can_be_null () const
 
std::size_t length () const
 
uint64_t size_in_bytes () const
 
bool guarantees_terminating_nul () const
 

Private Attributes

bool can_be_null_
 
const CharacterSequencetype_
 

Detailed Description

Definition at line 31 of file WasmUtil.hpp.

Member Typedef Documentation

◆ primitive_type

Definition at line 33 of file WasmUtil.hpp.

Constructor & Destructor Documentation

◆ NChar() [1/4]

m::wasm::NChar::NChar ( Ptr< Charx1 >  ptr,
bool  can_be_null,
const CharacterSequence type 
)
inline

Definition at line 40 of file WasmUtil.hpp.

◆ NChar() [2/4]

m::wasm::NChar::NChar ( Ptr< Charx1 >  ptr,
bool  can_be_null,
std::size_t  length,
bool  guarantees_terminating_nul 
)
inline

Definition at line 43 of file WasmUtil.hpp.

◆ NChar() [3/4]

m::wasm::NChar::NChar ( NChar )
default

◆ NChar() [4/4]

m::wasm::NChar::NChar ( NChar &&  )
default

Member Function Documentation

◆ can_be_null()

bool m::wasm::NChar::can_be_null ( ) const
inline

◆ clone()

NChar m::wasm::NChar::clone ( ) const
inline

◆ guarantees_terminating_nul()

bool m::wasm::NChar::guarantees_terminating_nul ( ) const
inline

◆ insist_not_null()

Ptr< Charx1 > m::wasm::NChar::insist_not_null ( )
inline

Definition at line 57 of file WasmUtil.hpp.

References can_be_null(), clone(), not_null(), val(), and Wasm_insist.

◆ is_null()

Boolx1 m::wasm::NChar::is_null ( )
inline

Definition at line 63 of file WasmUtil.hpp.

References can_be_null(), and m::wasm::discard().

Referenced by m::wasm::str_hash().

◆ length()

std::size_t m::wasm::NChar::length ( ) const
inline

◆ not_null()

Boolx1 m::wasm::NChar::not_null ( )
inline

Definition at line 71 of file WasmUtil.hpp.

References can_be_null(), and m::wasm::discard().

Referenced by insist_not_null().

◆ size_in_bytes()

uint64_t m::wasm::NChar::size_in_bytes ( ) const
inline

Definition at line 82 of file WasmUtil.hpp.

References m::CharacterSequence::size(), and type_.

◆ val()

Ptr< Charx1 > m::wasm::NChar::val ( )
inline

Field Documentation

◆ can_be_null_

bool m::wasm::NChar::can_be_null_
private

Definition at line 36 of file WasmUtil.hpp.

Referenced by can_be_null(), and clone().

◆ type_

const CharacterSequence* m::wasm::NChar::type_
private

Definition at line 37 of file WasmUtil.hpp.

Referenced by clone(), guarantees_terminating_nul(), length(), and size_in_bytes().


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