Panda3D
 All Classes Functions Variables Enumerations
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
UnalignedLVecBase4i Class Reference

This is an "unaligned" LVecBase4. More...

#include "lvecBase4.h"

Public Types

enum  { num_components = 4, is_int = 0 }
 
typedef int numeric_type
 
typedef LSimpleMatrix< int, 1, 4 > UVector4
 

Public Member Functions

 UnalignedLVecBase4i (const LVecBase4i &copy)
 
 UnalignedLVecBase4i (const UnalignedLVecBase4i &copy)
 
 UnalignedLVecBase4i (int x, int y, int z, int w)
 
const int * get_data () const
 Returns the address of the first of the three data elements in the vector. More...
 
int get_num_components () const
 Returns the number of elements in the vector, 4. More...
 
UnalignedLVecBase4ioperator= (const LVecBase4i &copy)
 
UnalignedLVecBase4ioperator= (const UnalignedLVecBase4i &copy)
 
int operator[] (int i) const
 
int & operator[] (int i)
 
void set (int x, int y, int z, int w)
 

Static Public Member Functions

static TypeHandle get_class_type ()
 
static void init_type ()
 
static int size ()
 Returns 4: the number of components of a LVecBase4. More...
 

Public Attributes

UVector4 _v
 

Detailed Description

This is an "unaligned" LVecBase4.

It has no functionality other than to store numbers, and it will pack them in as tightly as possible, avoiding any SSE2 alignment requirements shared by the primary LVecBase4 class.

Use it only when you need to pack numbers tightly without respect to alignment, and then copy it to a proper LVecBase4 to get actual use from it.

Definition at line 3350 of file lvecBase4.h.

Member Function Documentation

const int * UnalignedLVecBase4i::get_data ( ) const
inline

Returns the address of the first of the three data elements in the vector.

The remaining elements occupy the next positions consecutively in memory.

Definition at line 4623 of file lvecBase4.h.

int UnalignedLVecBase4i::get_num_components ( ) const
inline

Returns the number of elements in the vector, 4.

Definition at line 4633 of file lvecBase4.h.

int UnalignedLVecBase4i::size ( )
inlinestatic

Returns 4: the number of components of a LVecBase4.

Definition at line 4611 of file lvecBase4.h.


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