Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
draftsight / opt / dassault-systemes / DraftSight / APISDK / headers / cpp / dsDoubleArray.h
Size: Mime:
//========================================================================//
//							SOURCE CODE LICENSE							  //
//  Copyright 2012 Dassault Systèmes SolidWorks Corporation               //
//  All rights reserved.                                                  //
//  This software and related documentation are proprietary to            // 
//  Dassault Systèmes SolidWorks Corporation                              //
//========================================================================//
// dsDoubleArray.h, C++ API dsDoubleArray interface
//
#pragma once

#include "dsLibrary_global.h"

class dsDoubleArray_pimpl;
class DSLIBRARY_EXPORT dsDoubleArray
{
public:
    dsDoubleArray(); // constructor 
    dsDoubleArray(const dsDoubleArray &a); // copy constructor 
    ~dsDoubleArray(); // distructor 
    dsDoubleArray& operator = (const dsDoubleArray &a); // assignment operator 
 
    double& operator [] (unsigned int index) const; // get array item 
    void add(const double &item); // Add item to the end of array 
 
    unsigned int getSize() const; // get size of array (DTements)
    void setSize(unsigned int newsize); // set size of array (DTements)
    void clear(); // clear array
    bool removeAt(unsigned int pos); // delete array item 
	void* getptr(); // get void* pointer to array data
 
    enum exception { MEMFAIL, WRONG_INDEX  }; // exception enum 
 
private:
    dsDoubleArray_pimpl *m_pimpl;    
};