◆ OutputBuffer()
| igl::geodesic::OutputBuffer::OutputBuffer |
( |
| ) |
|
|
inline |
229 :
231 {}
unsigned m_num_bytes
Definition exact_geodesic.cpp:268
◆ allocate()
template<class T >
| T * igl::geodesic::OutputBuffer::allocate |
( |
unsigned |
n | ) |
|
|
inline |
241 {
242 double wanted = n*sizeof(T);
244 {
245 unsigned new_size = (unsigned)
ceil(wanted / (
double)
sizeof(double));
246 m_buffer = std::shared_ptr<double>(
new double[new_size]);
248 }
249
251 }
EIGEN_DEVICE_FUNC const CeilReturnType ceil() const
Definition ArrayCwiseUnaryOps.h:402
std::shared_ptr< double > m_buffer
Definition exact_geodesic.cpp:267
References ceil(), m_buffer, and m_num_bytes.
◆ capacity()
template<class T >
| unsigned igl::geodesic::OutputBuffer::capacity |
( |
| ) |
|
|
inline |
261 {
263 };
EIGEN_DEVICE_FUNC const FloorReturnType floor() const
Definition ArrayCwiseUnaryOps.h:388
References floor(), and m_num_bytes.
◆ clear()
| void igl::geodesic::OutputBuffer::clear |
( |
| ) |
|
|
inline |
◆ get()
template<class T >
| T * igl::geodesic::OutputBuffer::get |
( |
| ) |
|
|
inline |
◆ m_buffer
| std::shared_ptr<double> igl::geodesic::OutputBuffer::m_buffer |
|
private |
◆ m_num_bytes
| unsigned igl::geodesic::OutputBuffer::m_num_bytes |
|
private |
The documentation for this class was generated from the following file: