Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

mobject.cc File Reference

More...

#include <iostream>
#include <malloc.h>
#include <stdlib.h>
#include "magic/mobject.h"
#include "magic/mclass.h"
#include "magic/mmath.h"
#include "magic/mmagisupp.h"
#include "magic/mdatastream.h"

Go to the source code of this file.

Functions

 BEGIN_NAMESPACE (MagiC)
 impl_dynamic (Int,{Comparable}) ostream &operator<< (ostream &out
int compareComparable (const void *a, const void *b)
int rnd (int range)
double frnd ()
double gaussrnd (double stdv)
void assertwith (const char *filename, int lineno, const char *funcname, const char *condition, const char *message)


Detailed Description

Definition in file mobject.cc.


Function Documentation

void assertwith const char *    filename,
int    lineno,
const char *    funcname,
const char *    condition = NULL,
const char *    message = NULL
 

Internal for ASSERT and ASSERTWITH.

*

Definition at line 447 of file mobject.cc.

BEGIN_NAMESPACE MagiC   
 

This file is part of the MagiC++ library.

* * Copyright (C) 1998-2002 Marko Grönroos <magi@iki.fi> * *

* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; see the file COPYING.LIB. If * not, write to the Free Software Foundation, Inc., 59 Temple Place *

  • Suite 330, Boston, MA 02111-1307, USA. * *

int compareComparable const void *    a,
const void *    b
 

Callback function for running qsort...

Definition at line 357 of file mobject.cc.

double frnd  
 

Returns a double-float random value between 0 and 1.

Definition at line 408 of file mobject.cc.

double gaussrnd double    stdv
 

Returns a normally distributed random value with the given standard deviation.

Definition at line 412 of file mobject.cc.

impl_dynamic Int   
 

Outputs any Object to the standard C++ stream, if the operator<< has been defined for it.

For example:

String myString = "Hello, World!";

cout << myString << "
";

int rnd int    range
 

Returns a random integer value in range 0..range-1.

Definition at line 404 of file mobject.cc.


Generated on Thu Feb 10 20:06:43 2005 for LibMagiC by doxygen1.2.18