Open3D (C++ API)  0.18.0+80ae047
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes
open3d::core::Dtype Class Reference

#include <Dtype.h>

Public Types

enum class  DtypeCode {
  Undefined , Bool , Int , UInt ,
  Float , Object
}
 

Public Member Functions

 Dtype ()
 
 Dtype (DtypeCode dtype_code, int64_t byte_size, const std::string &name)
 
int64_t ByteSize () const
 
DtypeCode GetDtypeCode () const
 
bool IsObject () const
 
std::string ToString () const
 
bool operator== (const Dtype &other) const
 
bool operator!= (const Dtype &other) const
 

Static Public Member Functions

template<typename T >
static const Dtype FromType ()
 
template<>
const Dtype FromType ()
 
template<>
const Dtype FromType ()
 
template<>
const Dtype FromType ()
 
template<>
const Dtype FromType ()
 
template<>
const Dtype FromType ()
 
template<>
const Dtype FromType ()
 
template<>
const Dtype FromType ()
 
template<>
const Dtype FromType ()
 
template<>
const Dtype FromType ()
 
template<>
const Dtype FromType ()
 
template<>
const Dtype FromType ()
 

Static Public Attributes

static const Dtype Undefined
 
static const Dtype Float32
 
static const Dtype Float64
 
static const Dtype Int8
 
static const Dtype Int16
 
static const Dtype Int32
 
static const Dtype Int64
 
static const Dtype UInt8
 
static const Dtype UInt16
 
static const Dtype UInt32
 
static const Dtype UInt64
 
static const Dtype Bool
 

Member Enumeration Documentation

◆ DtypeCode

Enumerator
Undefined 
Bool 
Int 
UInt 
Float 
Object 

Constructor & Destructor Documentation

◆ Dtype() [1/2]

open3d::core::Dtype::Dtype ( )
inline

◆ Dtype() [2/2]

open3d::core::Dtype::Dtype ( DtypeCode  dtype_code,
int64_t  byte_size,
const std::string &  name 
)
explicit

Member Function Documentation

◆ ByteSize()

int64_t open3d::core::Dtype::ByteSize ( ) const
inline

◆ FromType() [1/12]

template<typename T >
static const Dtype open3d::core::Dtype::FromType ( )
inlinestatic

Convert from C++ types to Dtype. Known types are explicitly specialized, e.g. FromType<float>(). Unsupported type results in an exception.

◆ FromType() [2/12]

template<>
const Dtype open3d::core::Dtype::FromType ( )
inlinestatic

◆ FromType() [3/12]

template<>
const Dtype open3d::core::Dtype::FromType ( )
inlinestatic

◆ FromType() [4/12]

template<>
const Dtype open3d::core::Dtype::FromType ( )
inlinestatic

◆ FromType() [5/12]

template<>
const Dtype open3d::core::Dtype::FromType ( )
inlinestatic

◆ FromType() [6/12]

template<>
const Dtype open3d::core::Dtype::FromType ( )
inlinestatic

◆ FromType() [7/12]

template<>
const Dtype open3d::core::Dtype::FromType ( )
inlinestatic

◆ FromType() [8/12]

template<>
const Dtype open3d::core::Dtype::FromType ( )
inlinestatic

◆ FromType() [9/12]

template<>
const Dtype open3d::core::Dtype::FromType ( )
inlinestatic

◆ FromType() [10/12]

template<>
const Dtype open3d::core::Dtype::FromType ( )
inlinestatic

◆ FromType() [11/12]

template<>
const Dtype open3d::core::Dtype::FromType ( )
inlinestatic

◆ FromType() [12/12]

template<>
const Dtype open3d::core::Dtype::FromType ( )
inlinestatic

◆ GetDtypeCode()

DtypeCode open3d::core::Dtype::GetDtypeCode ( ) const
inline

◆ IsObject()

bool open3d::core::Dtype::IsObject ( ) const
inline

◆ operator!=()

bool open3d::core::Dtype::operator!= ( const Dtype other) const

◆ operator==()

bool open3d::core::Dtype::operator== ( const Dtype other) const

◆ ToString()

std::string open3d::core::Dtype::ToString ( ) const
inline

Field Documentation

◆ Bool

const Dtype open3d::core::Dtype::Bool
static

◆ Float32

const Dtype open3d::core::Dtype::Float32
static

◆ Float64

const Dtype open3d::core::Dtype::Float64
static

◆ Int16

const Dtype open3d::core::Dtype::Int16
static

◆ Int32

const Dtype open3d::core::Dtype::Int32
static

◆ Int64

const Dtype open3d::core::Dtype::Int64
static

◆ Int8

const Dtype open3d::core::Dtype::Int8
static

◆ UInt16

const Dtype open3d::core::Dtype::UInt16
static

◆ UInt32

const Dtype open3d::core::Dtype::UInt32
static

◆ UInt64

const Dtype open3d::core::Dtype::UInt64
static

◆ UInt8

const Dtype open3d::core::Dtype::UInt8
static

◆ Undefined

const Dtype open3d::core::Dtype::Undefined
static

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